<?php

namespace app\api\controller;

use app\api\model\Advert;
use app\api\model\Massif;
use app\common\controller\Frontend;

class Index extends Frontend
{
    protected array $noNeedLogin = ['*'];

    public function initialize(): void
    {
        parent::initialize();
    }


    /**
     * 广告列表
     * @return
     */
    public function getAdvert(){
        return json((new Advert())->getAdvert());
    }


    /**
     * 获取土地品类
     * @return
     */
    public function getLandList(){
         return json((new \app\api\model\Land())->getLandList());
    }

    /**
     * 获取地块列表
     * @return
     */

    public function getMassif(){
        return json((new Massif())->getMassif($this->request_array));
    }







}